using System;
using SmartBoard.Core.Data;

namespace SmartBoard.BackGround.Data
{
    [Serializable]
    internal class V10BackgroundData:BoardElementDataBase
    {
        #region Public Properties
        public byte A { get; set; }
        public byte R { get; set; }
        public byte G { get; set; }
        public byte B { get; set; }

        public override byte Version
        {
            get { return (byte) DataVersion.V10; }
        }
        #endregion

        #region Overrides
        public override bool Equals(IBoardElementData other)
        {
            if(base.Equals(other))
            {
                var data = other as V10BackgroundData;
                if (data == null)
                    return false;
                return this.A == data.A && this.B == data.B && this.R == data.R && this.G == data.G;
            }
            return false;
        }
        #endregion
    }
}